There is a way to login via MCP, head over to Start.java and add these arguments :
"--uuid", "YOURUUID", "--accessToken", "YOURACCESSTOKEN","--username", "YOURMINECRAFTUSERNAME","--userType","mojang"
you can get an access token using the library, there is an example in the readme. Note that...