Fixed server code. Now returns a boolean if login was successful.