Login & register functionality with returning messages