Added assertion for logging in to server