When the user logs in using the Login activity their information is checked in a database. A response is then send to the Login activty telling the user if their login attempt has been successful. When a new user registers, the data they enter is validated in the Register activity. Their information is then send to the database. The database will then send a response letting them know if it was successfully entered.
Is this the correct way to illustrate these actions in sequence diagrams?
Welcome to StackOverflow, @codester124. If you found an answer to your question, please consider accepting it (by clicking the check-mark), and consider up-voting it (by clicking the up arrow). Accepting an answer indicates to the wider community that you've found a solution, gives yourself some reputation points, and gives some reputation points to the person who answered your question. If you did not find a satisfactory answer to your question, please leave a comment.
Commented May 13, 2016 at 2:31The vertical lifelines typically do not represent activities, they typically represent instances of classes. (Yes, it is syntactically possible in UML to use an activity, but it is a very strange thing to do.) Those instances are usually typed by classes or interfaces that either have operations or signal receptions that can be invoked via messages. Moreover, in UML, there is no message kind that has a white arrowhead.
Therefore, no, those diagrams are not quite the correct way to illustrate the actions in a sequence diagram.